package com.flejay.dreamrecruiter.tools;

import org.apache.commons.lang3.StringUtils;

public final class ExceptionHandlerTool {

	private ExceptionHandlerTool(){
		super();
	}
	
	public static void controlString(String param, String paramName){
		if (StringUtils.isEmpty(param)){
			StringBuffer buffer = new StringBuffer().append(paramName).append(" could not be null or empty");
			throw new IllegalArgumentException(buffer.toString());
		}
	}
	
}
